package cn.tjnext.apply.contants;

import java.util.AbstractMap;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * 实体类的状态，启用(0)/禁用(1)
 */
public abstract class EntityStatus {
    public static final int NORMAL = 1;
    public static final int DISABLED = 0;

    private static List<Map.Entry<Integer, String>> statusList = new ArrayList<>();
    static {
        statusList = new ArrayList<>();
        statusList.add(new AbstractMap.SimpleEntry<>(NORMAL, "启用"));
        statusList.add(new AbstractMap.SimpleEntry<>(DISABLED, "禁用"));
    }

    public static List<Map.Entry<Integer, String>> getStatusList() {
        return statusList;
    }
}
